import { fetch } from "expo/fetch";
const address = "http://192.168.207.125:3000";

export const hotReloadRespo = async () => {
  const resp = await fetch(`${address}/ai/hot`, {
    method: "GET",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/json",
    },
  });
  const json = await resp.json();
};

export const resetRespo = async () => {
  const resp = await fetch(`${address}/ai/reset`, {
    method: "GET",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/json",
    },
  });
};

export const aiRespo = async (inputValue: string) => {
  const resp = await fetch(`${address}/ai?value=${inputValue}`, {
    method: "GET",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/json",
    },
  });
  const json = await resp.json();
};

export const aiImgRespo = async () => {
  const resp = await fetch(`${address}/ai/image`, {
    method: "GET",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/json",
    },
  });
  const json = await resp.json();
};
